#!/bin/bash

# Define source directory and backup directory
SOURCE_DIR="/home/ecs-assist-user/.steam/SteamApps/common/PalServer/Pal/Saved"
BACKUP_DIR="/data"
DATE=$(date +%Y%m%d_%H%M%S)

# Create a gzip compressed tarbal
sudo tar -cvf "${BACKUP_DIR}/Palbackup_${DATE}.tar" "${SOURCE_DIR}"

echo "palbackup.sh of ${SOURCE_DIR} completed at ${BACKUP_DIR}/Palbackup_${DATE}.tar"
